package com.jadefashion.service;




import com.jadefashion.health.entity.PageResult;
import com.jadefashion.pojo.Permission;

import java.util.List;

public interface PermissionService {
    //分页查询
    PageResult queryPage(String queryString, Integer currentPage, Integer pageSize);

    //添加permission
    void addPermission(Permission permission);

    //删除permission
    void deletePermission(Integer id);

    //编辑修改permission
    void editPermission(Permission permission);

    //查询所有permission
    List<Permission> queryAllPermission();

    //查询role对应permission
    List<Permission> queryPermissionForRole(Integer id);

}
